<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<!-- bootstrap meta -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- bootstrap cass -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">

<title>老子的天气预报</title>
</head>
<body>

	<div class="container">

		<div class="row">
			<h3 th:text="${title}"></h3>
			&nbsp;&nbsp;
			<select class="custom-select" th:id="selectCityId">
				<option th:each="city : ${cityList}" th:value="${city.cityId}" th:text="${city.cityName}" th:selected="${cityId eq city.cityId}"></option>
			</select>
		</div>

		<div class="row">
			<h1 class="text-success" th:text="${report.city}"></h1>
		</div>

		<div class="row">
			<p>
				空气质量指数：
				<span th:text="${report.aqi}"> </span>
			</p>
		</div>

		<div class="row">
			<p>
				当前温度：
				<span th:text="${report.wendu}"> </span>
			</p>
		</div>

		<div class="row">
			<p>
				温馨提示：
				<span th:text="${report.ganmao}"> </span>
			</p>
		</div>

		<div class="row">
			<div class="card border-info" th:each="forecast : ${report.forecast}">
				<div class="card-body text-info">
					<p class="card-text " th:text="${forecast.date}"></p>
					<p class="card-text" th:text="${forecast.type}"></p>
					<p class="card-text" th:text="${forecast.high}"></p>
					<p class="card-text" th:text="${forecast.low}"></p>
					<p class="card-text" th:text="${forecast.fengxiang}"></p>
				</div>
			</div>
		</div>

	</div>

	<!-- jQuery first, then Popper.js, then Bootstrap JS -->
	<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
	<!-- Optional JavaScript -->
	<script type="text/javascript" th:src="@{/js/weather/report.js}"></script>

</body>
</html>